package cn.com.api.service.impl;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiGoods;
import cn.com.api.entity.ApiShop;
import cn.com.api.entity.ApiSmslog;
import cn.com.api.entity.ApiT_specification;
import cn.com.api.entity.ApiTmember;
import cn.com.api.mapper.ApiT_specificationMapper;
import cn.com.api.service.ApiT_specificationService;

@Service
public class ApiT_specificationServiceImpl implements ApiT_specificationService {
	@Autowired
	private ApiT_specificationMapper apiT_SpecificationMapper;

	// 查询商品规格
	public List<ApiT_specification> getT_specifications() {
		List<ApiT_specification> list = null; // apiT_SpecificationMapper.searchMyShops(u_id);
		// System.out.println(list);
		return list;
	}

	// 根据id获取商品规格
	public ApiT_specification findT_specificationById(String id) {
		ApiT_specification t_spec = apiT_SpecificationMapper
				.findT_specificationById(Integer.valueOf(id));
		return t_spec;
	}

	// 添加商品规格
	public void insertT_specification(ApiT_specification t_spec) {
		apiT_SpecificationMapper.insertT_specification(t_spec);
		return;
	}

	// 修改商品规格
	public void updateT_specification(ApiT_specification t_spec) {
		apiT_SpecificationMapper.updateT_specification(t_spec);
		return;
	}

	// 删除商品规格
	public int deleteT_specification(String id) {
		int ret_I = apiT_SpecificationMapper.deleteT_specification(Integer
				.valueOf(id));
		return ret_I;
	}

}
